<?php

class Banners_ajax extends Admin_Controller {

	function __construct()
	{
		parent::__construct();	
		$this->sSkinFile = 'ajax';
	}
	
	public function index()
	{
		return null;
	}
	
	public function delete_banner()
	{
		$iBannerId = $this->input->post('banner_id', true, 0);

		$this->load->model('db/baa_banners', 'baa_banners');
		
		$this->baa_banners->banner_id = $iBannerId;
		$this->baa_banners->banner_status = 'NL';
		
		$this->baa_banners->save();
		
		$data['json_encode'] = array('deleted' => 1);
		
		$this->load->view('php_json_encode', $data);
	}
}

?>